
console.log(import.meta.env)
export const baseApiUrl = import.meta.env.VITE_API_URL_BASE
export const apiURL = `${baseApiUrl}/api`
export const version = '25.4.6'
type ProductInfoItem = {
    pName: string,
    name: string,
    company: string,
    copyright: string,
    icp: Record<string, string>,
    icpDefault?: string,
    protocolLink: {
        [key: string]: string;
    }
}
export const productInfo: Record<string, ProductInfoItem> = {
    'ayr': {
        pName: 'ayr',
        name: '安易融',
        company: '恒盛融资担保（福州）有限公司',
        copyright: 'Copyright©2024',
        icp: {
            'hengshengfinance.cn': '闽ICP备2020020353号-1',
            'hengshengfinance.net': '闽ICP备2020020353号-2',
            'hengshengfinance.com': '闽ICP备2020020353号-3',
            'hsfinance.com.cn': '闽ICP备2020020353号-17',
            'hengtdb.com': '闽ICP备2020020353号-16',
        },
        icpDefault: 'hengtdb.com',
        protocolLink: {
            userServicesAgreement: `${location.origin}/protocol/userServicesAgreement.html`,
            privacyPolicy: `${location.origin}/protocol/privacyPolicy.html`,
            realNameAuthentication: `${location.origin}/protocol/realNameAuthentication.html`,
            faceRecognition: `${location.origin}/protocol/faceRecognition.html`,
            riskWarningNotice: `${location.origin}/protocol/riskWarningNotice.html`,
            personalInformationAuthorized: `${location.origin}/protocol/personalInformationAuthorized.html`,
        }
    },
    'hcyj': {
        pName: 'hcyj',
        name: '泓昌易借',
        company: '河池市宜州区泓昌小额贷款有限公司',
        copyright: 'Copyright©2024',
        icp: {
            '': '',
        },
        icpDefault: '',
        protocolLink: {
            userServicesAgreement: `${location.origin}/protocol/hcyj/userServicesAgreement.html`,
            privacyPolicy: `${location.origin}/protocol/hcyj/privacyPolicy.html`,
            realNameAuthentication: `${location.origin}/protocol/realNameAuthentication.html`,
            faceRecognition: `${location.origin}/protocol/faceRecognition.html`,
            riskWarningNotice: `${location.origin}/protocol/riskWarningNotice.html`,
            personalInformationAuthorized: `${location.origin}/protocol/personalInformationAuthorized.html`,
        }
    },
    'hxr': {
        pName: 'hxr',
        name: '恒小融',
        company: '金华市安民融资担保有限公司',
        copyright: 'Copyright©2024',
        icp: {
            '': '',
        },
        icpDefault: '',
        protocolLink: {
            userServicesAgreement: `${location.origin}/protocol/hxr/userServicesAgreement.html`,
            privacyPolicy: `${location.origin}/protocol/hxr/privacyPolicy.html`,
            realNameAuthentication: `${location.origin}/protocol/realNameAuthentication.html`,
            faceRecognition: `${location.origin}/protocol/faceRecognition.html`,
            riskWarningNotice: `${location.origin}/protocol/riskWarningNotice.html`,
            personalInformationAuthorized: `${location.origin}/protocol/personalInformationAuthorized.html`,
        }
    },
}